/*
 *Description:
 *User:laoHu
 *Created with Intellij IDEA 2025
 *Data:2025.05.00
 *Time:00:00
 */
import java.util.Scanner;
import java.lang.Math;

import java.util.Scanner;

import java.lang.Math;

public class Main {
    public static void main(String[] args){
        Scanner scan1 = new Scanner(System.in);
        while(scan1.hasNext()){

            double a = scan1.nextDouble();

            double b = scan1.nextDouble();

            double c = scan1.nextDouble();



            if(a == 0){
                System.out.println("Not quadratic equation");
            }else{
                double r = Math.pow(b,2) - 4*a*c;
                double x1 = 0.0;
                double x2 = 0.0;
                if(r == 0){

                    x1 = x2 = (-b)/(2*a);
                    if(x1 == -0.00)
                        System.out.printf("x1=x2=%.2f", -x1);

                    else
                        System.out.printf("x1=x2=%.2f", x2);


                }else if(r > 0){
                    x1 = (-b + Math.sqrt(r)) / (2*a);
                    x2 = (-b - Math.sqrt(r)) / (2*a);
                    if(x1 < x2)
                        System.out.printf("x1=%.2f;x2=%.2f\n",x1,x2);
                    else
                        System.out.printf("x1=%.2f;x2=%.2f\n",x2,x1);
                }else{
                    double real = (-b)/(2*a);
                    double imag = Math.sqrt(-r)/(2*a);
                    System.out.printf("x1=%.2f-%.2fi;x2=%.2f+%.2fi",real,imag,real,imag);
                }
            }

        }
    }
}